﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Site.Domain.Core.Abstract
{
    public interface IBlock
    {
        string Name { get; set; }
        string Title { get; set; }
        Color Color { get; set; }
        Size Size { get; set; }
        Position Position { get; set; }
        Margin Margin { get; set; }
    }

    public struct Size
    {
        public int Width { get; set; }
        public int Height { get; set; }
    }

    public struct Position
    {
        public int X { get; set; }
        public int Y { get; set; }
    }

    public class Margin
    {

        public Margin(int defaultMargin)
        {
            Left = defaultMargin;
            Top = defaultMargin;
            Right = defaultMargin;
            Bottom = defaultMargin;
        }

        public int Left { get; set; }
        public int Top { get; set; }
        public int Right { get; set; }
        public int Bottom { get; set; }
    }

    public enum Color
    {
        Black = 0,
        Red, Yellow, Green, Magenta, Olive
    }
}
